package com.songlanyun.modules.protocolconfig.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;

import lombok.Data;

/**
 * 协议管理
 *
 * @author lijiahe 2022-08-05
 */
@Data
@TableName("yxt_protocol_config")
public class ProtocolConfigEntity extends RootEntity<Integer, ProtocolConfigEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Integer id;
    /**
     * service-agreement服务协议 privacy-agreement隐私协议 claiming-rules申领规则 about-us关于我们 consumption-to-point 贡献值转积分协议，area-agent区域代理协议，income_statement收益说明
     */
    private String markCode;
    /**
     * 内容
     */
    private String content;

    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Override
    public Integer getIdentity() {
        return getId();
    }
}
